//Tue 04 Oct 2011 14:30:27 PDT 
import java.util.*;
import java.util.regex.*;
import java.text.*;
import java.math.*;
import java.awt.geom.*;

public class SRMRoomAssignmentPhase {
	public int countCompetitors(int[] ratings, int K) {
		int count = 0;
		for (int r : ratings) {
			if (r > ratings[0])
				count++;
		}
		return count / K;
	}
}
// Powered by [KawigiEdit] 2.0!
